const Mock = require("mockjs");

const img = Mock.Random.image();

module.exports = [
  {
    url: "/sys/auth/login",
    type: "post",
    response: config => {
      return {
        msg: "登陆成功",
        code: 200,
        data: {
          uid: "8a47ef4e4298431eaf6dbcfc774ee784",
          nickname: "测试账号",
          username: "admin",
          token: "test"
        },
        success: true,
        time: "2021-03-11 11:36:27"
      };
    }
  },
  {
    url: "/sys/auth/logout",
    type: "post",
    response: config => {
      return {
        msg: "注销成功",
        code: 200,
        data: null,
        success: true,
        time: "2021-03-10 17:42:54"
      };
    }
  },
  // 获取验证码图片
  {
    url: "/sys/auth/vCore",
    type: "get",
    response: config => {
      return {
        msg: "获取图片成功",
        code: 200,
        data: null,
        success: true,
        time: "2021-03-10 17:42:54"
      };
    }
  }
];
